package com.canto.wanna.user.services.impl;

import com.canto.common.services.DataService;
import com.canto.wanna.user.dao.RoleMenuRelationDao;
import com.canto.wanna.user.pojo.doo.ResourceDO;
import com.canto.wanna.user.pojo.doo.RoleMenuRelationDO;
import com.canto.wanna.user.pojo.entity.RoleMenuRelation;
import com.canto.wanna.user.pojo.query.ResourceQuery;
import com.canto.wanna.user.pojo.query.RoleMenuRelationQuery;
import com.canto.wanna.user.services.RoleMenuRelationService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 角色与菜单关联关系impl
 *
 * @Author jsryin
 * @Date 2021/7/18 0:35
 */
@Service
@Transactional(readOnly = true)
public class RoleMenuRelationServiceImpl extends DataService<RoleMenuRelationDao> implements RoleMenuRelationService {

    @Override
    public RoleMenuRelationDO get(RoleMenuRelationQuery query) {
        return super.get(query);
    }

    public List<RoleMenuRelationDO> findList(RoleMenuRelationQuery query) {
        return super.findList(query);
    }

    @Transactional(readOnly = false, rollbackFor = Exception.class)
    public long save(RoleMenuRelation roleMenuRelation) {
        return super.save(roleMenuRelation);
    }

    @Transactional(readOnly = false, rollbackFor = Exception.class)
    public long delete(RoleMenuRelation roleMenuRelation) {
        return super.delete(roleMenuRelation);
    }

    @Override
    public List<ResourceDO> findResourceList(ResourceQuery resourceQuery) {
        return null;
    }

}
